package com.hp.siminterface.webservice.impl;

import java.util.List;

import com.hp.siminterface.domain.HPUXLogicalVolume;
import com.hp.siminterface.persistence.HPUXLogicalVolumeMapper;
import com.hp.siminterface.webservice.HPUXLogicalVolumeService;

public class HPUXLogicalVolumeServiceImpl implements HPUXLogicalVolumeService {
	private HPUXLogicalVolumeMapper hpuxLogicalVolumeMapper;

	@Override
	public HPUXLogicalVolume[] getHPUXLogicalVolumeInfo() {
		List<HPUXLogicalVolume> hpuxLogicalVolumes = hpuxLogicalVolumeMapper
				.selectHPUXLogicalVolume();
		HPUXLogicalVolume[] hpuxLogicalVolumeArray = new HPUXLogicalVolume[hpuxLogicalVolumes
				.size()];
		int i = 0;
		for (HPUXLogicalVolume hpuxLogicalVolume : hpuxLogicalVolumes) {
			hpuxLogicalVolumeArray[i] = hpuxLogicalVolume;
			i++;
		}
		return hpuxLogicalVolumeArray;
	}

	public void setHpuxLogicalVolumeMapper(
			HPUXLogicalVolumeMapper hpuxLogicalVolumeMapper) {
		this.hpuxLogicalVolumeMapper = hpuxLogicalVolumeMapper;
	}

}
